package com.far.game.xiuzhen.common.database.entity.Vo.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.far.game.xiuzhen.common.database.entity.Partner;
import com.far.game.xiuzhen.common.enums.TrueOrFalseEnums;
import com.far.game.xiuzhen.common.enums.game.JobEnums;
import com.far.game.xiuzhen.common.enums.game.RaceEnums;
import com.far.game.xiuzhen.common.enums.game.skill.CombinUseOrderEnums;
import com.far.game.xiuzhen.common.enums.game.skill.PassiveTriggerEnums;
import com.far.game.xiuzhen.common.enums.game.skill.UseSkillNeedPropEnums;
import com.far.game.xiuzhen.common.utils.EnumUtil;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mike
 * @since 2022-07-20
 */

public class PartnersVo extends Partner {


    /**
     * 职业  1战士 2辅助 3盾 4医
     */
    @ApiModelProperty(value = "职业  1战士 2辅助 3盾 4医")
    private String jobStr;

    /**
     * 种族
     */
    @ApiModelProperty(value = "种族   人 2妖 3魔 4灵")
    private String raceStr;

    @ApiModelProperty(value = "服务器ID")
    private String serverIdStr;

    /**
     * 所在区
     */
    @ApiModelProperty(value = "所在区")
    private String domainIdStr;

    public String getJobStr() {
        return jobStr;
    }

    public void setJobStr(String jobStr) {
        this.jobStr = jobStr;
    }

    public String getRaceStr() {
        return raceStr;
    }

    public void setRaceStr(String raceStr) {
        this.raceStr = raceStr;
    }

    public String getServerIdStr() {
        return serverIdStr;
    }

    public void setServerIdStr(String serverIdStr) {
        this.serverIdStr = serverIdStr;
    }

    public String getDomainIdStr() {
        return domainIdStr;
    }

    public void setDomainIdStr(String domainIdStr) {
        this.domainIdStr = domainIdStr;
    }

    public PartnersVo bulid() {
        this.setJobStr(EnumUtil.nameOfVal(JobEnums.values(),getJob()));
        this.setRaceStr(EnumUtil.nameOfVal(RaceEnums.values(),getRace()));
        return this;
    }

}
